package cc.mrbird.messageNotice.service.impl;

import cc.mrbird.messageNotice.dao.MessageNoticeMapper;
import cc.mrbird.messageNotice.domain.MessageHistory;
import cc.mrbird.messageNotice.domain.MessageNoticeEntry;
import cc.mrbird.messageNotice.service.MessageNoticeService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageNoticeServiceImpl implements MessageNoticeService {

    @Autowired
    private MessageNoticeMapper messageNoticeMapper;

    @Override
    public void addMessageNoticeEntry(MessageNoticeEntry messageNoticeEntry) {
        messageNoticeMapper.addMessageNoticeEntry(messageNoticeEntry);
    }

    @Override
    public List<MessageNoticeEntry> sendMessageNoticeTitle() {
        return messageNoticeMapper.sendMessageNoticeTitle();
    }

    @Override
    public MessageNoticeEntry sendMessageValue(String id) {
        return messageNoticeMapper.sendMessageValue(id);
    }

    @Override
    public MessageNoticeEntry getByIdMessageNoticeEntry(String id) {
        return messageNoticeMapper.getByIdMessageNoticeEntry(id);
    }

    @Override
    public void addMessageHistory(MessageHistory messageHistory) {
        messageNoticeMapper.addMessageHistory(messageHistory);
    }

    @Override
    public List<MessageHistory> messageHistoryList() {
        return messageNoticeMapper.messageHistoryList();
    }
}
